package com.xinzhidi.web.dtuusr.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.xinzhidi.common.annotation.Excel;
import com.xinzhidi.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;


/**
 * dtu设备对象 dtu_usr
 *
 * @author cx
 * @date 2023-06-15
 */
@ApiModel(value = "dtu设备对象")
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("dtu_usr")
public class DtuUsr extends BaseEntity {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "所属端口")
    private Integer port;

    @ApiModelProperty(value = "DTU名称")
    @Excel(name = "DTU名称")
    private String name;

    @ApiModelProperty(value = "心跳包")
    @Excel(name = "uuid")
    private String uuid;

    @ApiModelProperty(value = "注册包")
    private String registerPackage;

    @ApiModelProperty(value = "心跳间隔时间（单位：分钟）")
    private Integer intervalTime;

    @ApiModelProperty(value = "是否在线（0：在线  1不在线  默认1）")
    @Excel(name = "是否在线", readConverterExp = "0=：在线,1=不在线")
    private Integer status;

}
